package com.ai.nsa;

import java.util.Map;

/**
 * @author Feng Chen 2017/6/20.
 */
public class NSATables {

    private Map<String, String> tables;

    public Map<String, String> getTables() {
        return tables;
    }

    public void setTables(Map<String, String> tables) {
        this.tables = tables;
    }

    public String get(String interact) {
        if (!tables.containsKey(interact)) {
            throw new NSAException("Unknown table for " + interact);
        }

        return tables.get(interact);
    }

}
